home *** CD-ROM | disk | FTP | other *** search
- Ó/MakeFontClone {
- exch
- dup length 3 -1 roll add dict begin
- {
- 1 index /FID ne 2 index /UniqueID ne and {def} {pop pop} ifelse
- } forall
- currentdict
- end
- } Bdef
- /MakeFramedFont {
- 1 index /FontType get 0 ne {
- exch 2 MakeFontClone
- begin
- /PaintType 2 def
- 0 FontMatrix idtransform pop
- /StrokeWidth Xdef
- currentdict
- end
- } {
- exch
- 0 MakeFontClone begin
- FDepVector length array
- 0
- FDepVector {
- 3 index
- MakeFramedFont /FDepFramedFont
- exch definefont
- 3 copy put pop
- 1 add
- } forall
- pop
- /FDepVector Xdef
- pop
- currentdict
- end
- } ifelse
- } Bdef
- /MakeVerticalFont {
- dup /WMode known {0} {1} ifelse MakeFontClone
- dup begin
- /WMode 1 def
- end
- } Bdef
- /BoldBuildChar {
- exch begin
- theChar 0 3 -1 roll put
- baseFontDict setfont
- theChar stringwidth
- dup 0 ne {yBold add} if
- exch
- dup 0 ne {xBold add} if
- exch
- gsave
- newpath
- 0 0 moveto
- theChar false GXCharPath
- gsave
- xBold 2 mul yBold 2 mul scale 1 setlinewidth strokepath
- pathbbox
- grestore
- grestore
- setcachedevice
- newpath
- 0 0 moveto theChar true GXCharPath
- currentlinewidth
- xBold 2 mul
- yBold 2 mul
- scale
- 1 setlinewidth
- CharPathCount 0 eq {stroke} {strokepath} ifelse
- 1 xBold 2 mul div 1 yBold 2 mul div scale
- setlinewidth
- 0 0 moveto
- theChar CharPathCount 0 eq {show} {true charpath} ifelse
- end
- } Bdef
- /MakeBoldFont {
- 20 dict dup begin
- 4 1 roll
- /yBold Xdef
- /xBold Xdef
- /baseFontDict Xdef
- /theChar 1 string def
- baseFontDict /Encoding get /Encoding Xdef
- /FontType 3 def
- /FontMatrix [1 0 0 1 0 0] def
- /FontBBox [0 0 0 0] def
- /BuildChar /BoldBuildChar load def
- end
- } Bdef
-